package org.domeos.framework.api.biz.storage;

import java.util.List;

import org.domeos.framework.api.model.storage.Storage;
import org.domeos.framework.api.model.storage.VolumeDeployMap;

public interface StorageBiz {

	long createStorage(Storage storage);
	void updateStorage(Storage storage);
	void deleteStorage(int id);
	List<Storage> listStorageByClusterId(int clusterId);
	Storage getStorageById(int id);
	Storage getStorageByName(String name);
	List<Storage> getStorageByPathAndServer(String path, String server);
	void addVolumeVersionMount(VolumeDeployMap volumeDeployMap);
	int getCountDeployById(int id);
	List<VolumeDeployMap> getDeployInstanceById(int id);
	void removeVolumeVersionMapByDeployId(int id);
}
